<?php

namespace App\Models;

use Eloquent as Model;
use Illuminate\Database\Eloquent\SoftDeletes;

/**
 * Class Color
 * @package App\Models
 * @version February 14, 2018, 3:21 pm UTC
 *
 * @property string title
 * @property string pic
 */
class Cart extends Model
{
    public $table = 'carts';
    

    protected $dates = ['deleted_at'];


    public $fillable = [
        'goods_id',
        'user_id',
        'number',
        'color_id',
    ];

    public function goods()
    {
        return $this->belongsTo('App\Models\Goods');
    }

    public function color()
    {
        return $this->belongsTo('App\Models\Color');
    }
}
